package com.xcesys.extras.dataobject.system;

import com.xcesys.extras.dataobject.EditableObject;

public class Setting extends EditableObject {
	private static final long serialVersionUID = 4345509666660103767L;
	private String credentials;
	private String name;
	private Module module;
	private Long moduleId;
	private String type;
	private String value;

	public String getCredentials() {
		return credentials;
	}

	public Module getModule() {
		return module;
	}

	public Long getModuleId() {
		return moduleId;
	}

	public String getName() {
		return name;
	}

	public String getType() {
		return type;
	}

	public String getValue() {
		return value;
	}

	public void setCredentials(String credentials) {
		Object oldValue = this.credentials;
		this.credentials = credentials;
		firePropertyChange("credentials", oldValue, credentials);
	}

	public void setModule(Module module) {
		Object oldValue = this.module;
		this.module = module;
		firePropertyChange("module", oldValue, module);
	}

	public void setModuleId(Long moduleId) {
		Object oldValue = this.moduleId;
		this.moduleId = moduleId;
		firePropertyChange("moduleId", oldValue, moduleId);
	}

	public void setName(String name) {
		Object oldValue = this.name;
		this.name = name;
		firePropertyChange("name", oldValue, name);
	}

	public void setType(String type) {
		Object oldValue = this.type;
		this.type = type;
		firePropertyChange("type", oldValue, type);
	}

	public void setValue(String value) {
		Object oldValue = this.value;
		this.value = value;
		firePropertyChange("value", oldValue, value);
	}

}
